import { Component, OnInit } from '@angular/core';
import { FirstService } from 'src/app/first.service';

@Component({
  selector: 'ne-header',
  templateUrl: './header.component.html',
  styleUrls: ['./header.component.scss']
})
export class HeaderComponent implements OnInit {

  public userEmail: string = "";
  constructor(
    private firstService: FirstService
  ) { }

  ngOnInit(): void {
    this.firstService.dataSubcription.subscribe((data) => {
      this.userEmail = data;
    });
  }

}
